<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<ng-view></ng-view>

</body>
<script>
 function getJson(url,params,fn) {
        var str=url+'?';
        //拼接参数
        for(var key in params){
            str+=key+'='+params[key]+'&'
        }
        var jsonp='jsonp_'+Math.random().toString().substring(2)
        str+='callback='+jsonp;
        //创建script
        var script=document.createElement('script');
        script.src=str;
        //将创建好的script添加到页面中
        document.body.appendChild(script)
        window[jsonp]= function (data) {
            fn(data)
            document.body.removeChild(script);
        }
    }

 var url1='https://api.douban.com/v2/book/1220562';
 var url2='https://api.douban.com/v2/book/1220563';
 var obj={
     'apikey':'00fa6c0654689a0202ef4412fd39ce06'
 };
 getJson(url1,obj,function (data) {
     console.log(data);
 });
 getJson(url2,obj,function (data) {
     console.log(data);
 });
</script>
</html>